var city = require('../../utils/city.js');
var app = getApp()
Page({
  data: {
 
  },
  onLoad: function () {
      var that=this;
    // 生命周期函数--监听页面加载
   wx.chooseLocation({
       success: function(res) {
           console.log(res);
           that.setData({
               address: res.address
           })
           wx.reLaunch({
               url: '../index/index',
           })
       },
   })
  },
})